package com.xiaomo.gitee.datamanager.dto.security;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Schema(description = "用户信息对象",name = "用户信息模型",title = "用户信息模型")
@Data
public class UserDTO implements Serializable {

    @Schema(
            title = "username",
            description = "用户名",
            example = "用户名",
            format = "string",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private String username;

    @Schema(
            title = "password",
            description = "密码",
            format = "string",
            example = "123",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private String password;

    @Serial
    private static final long serialVersionUID = 1L;
}
